<template>
	<view>
		<u-navbar title-color="#fff" :borderBottom="false" titleColor="#000000" backIconSize="40" back-icon-color="#FFFFFF"
		 :background="background">
		</u-navbar>
		<view class="top">
			<image src="../static/tcl.png" class="img"></image>
		</view>
		<view class="content">
			<view class="up">
				<view class="left"></view>
				<view class="number">
					总奖励 <text>{{number}}</text>元
				</view>
				<view class="right"></view>
			</view>
			<view class="down">
				<view class="list" v-for="(item,index) in list" :key="index">
					<view class="title">
						第{{index+1}}天
					</view>
					<view class="con">
						<view class="left">
							<view class="view">
								蜂巢类型
							</view>
							<view class="view">
								买地新人
							</view>
							<view class="view">
								提升产出
							</view>
							<view class="view">
								奖金
							</view>
						</view>
						<view v-for="(a,b) in item" :key="b" :style="(b+1)%item.length==0?'border-right: 0;':''" :class="(b+1)%2!=0?'right active':'right'">
							<view class="view v1">
								{{a.title}}
							</view>
							<view class="view v2">
								{{a.count}} <text>人</text>
							</view>
							<view class="view v3">
								{{a.scale}} <text>%</text>
							</view>
							<view class="view v4" :style="a.price/1000>1?'font-size:22rpx':(a.price/100>1?'font-size:30rpx':'font-size:36rpx')">
								{{a.price}}
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="div"></view>
	</view>
</template>

<script>
	var than;
	export default {
		data() {
			return {
				background: {
					'background': 'transparent'
				},
				number: 60,
				list: []
			}
		},
		onLoad(option) {
			than = this;
			than.post('api/push_new/activeList', null, function(data) {
				than.list = data.list;
				than.number = data.number;
			})
		},
		methods: {

		}
	}
</script>

<style lang="less">
	page {
		background: #6909A3;
	}





	.div {
		position: relative;
		top: 350rpx;
		width: 100%;
		height: 30rpx;
	}


	.content {
		top: 330rpx;
		position: relative;
		z-index: 2;
		background: #FFFFFF;
		margin: auto;
		width: 678rpx;
		border-radius: 20rpx;
		padding: 26rpx 0 0;

		.up {
			margin: auto;
			width: 613rpx;
			height: 202rpx;
			background: #F8EFE1;
			display: flex;
			align-items: center;
			justify-content: center;
			position: relative;

			.left {
				position: absolute;
				left: 0;
				width: 20rpx;
				height: 35rpx;
				background-color: #FFFFFF;
				border-radius: 0 100rpx 100rpx 0;
			}

			.right {
				position: absolute;
				right: 0;
				width: 20rpx;
				height: 35rpx;
				background-color: #FFFFFF;
				border-radius: 100rpx 0 0 100rpx;
			}

			.number {
				font-size: 73rpx;
				background-image: -webkit-linear-gradient(left, #FE0142, #FD3A22, #FD5016);
				-webkit-background-clip: text;
				-webkit-text-fill-color: transparent;
				font-weight: bold;

				text {
					font-size: 70rpx;
					font-family: PingFang SC;
					font-weight: 400;
					background-image: -webkit-linear-gradient(left, #FF0F63, #FF0F63);
					-webkit-background-clip: text;
					-webkit-text-fill-color: transparent;
				}
			}
		}

		.down {
			width: 615rpx;
			margin: 29rpx auto 0;
			background: #FFFFFF;
			padding-bottom: 1rpx;
			border-radius: 12rpx;

			.title {
				margin-bottom: 10rpx;
				height: 60rpx;
				background-image: url(../static/title.png);
				background-size: 100% 100%;
				font-size: 30rpx;
				font-family: YouSheBiaoTiHei;
				font-weight: bold;
				color: #FFFFFF;
				display: flex;
				align-items: center;
				justify-content: center;
			}

			.list {
				border-radius: 12rpx;
				margin-bottom: 24rpx;
				background: #F8EFE1;
				padding-bottom: 24rpx;
			}

			.con {
				display: flex;
				align-items: center;
				border: 1rpx solid #3699FF;
				width: 585rpx;
				margin: auto;

				.left {
					color: #FFFFFF;
					width: 153rpx;
					text-align: center;
					background-color: #5087E4;

					.view {
						height: 86rpx;
						line-height: 86rpx;
					}
				}

				.active {
					background: #E4ECFF !important;

					.v2 {
						color: #5087E4 !important;
					}

					.v3 {
						color: #5087E4 !important;
					}

					.v4 {
						color: #5087E4 !important;
					}
				}

				.right {
					width: 108rpx;
					text-align: center;
					border-right: 1rpx solid #3699FF;
					background: #FFFFFF;

					.view {
						height: 86rpx;
						line-height: 86rpx;
					}

					.v1 {
						font-family: PingFang SC;
						font-weight: bold;
						color: #092660;
						font-size: 24rpx;
						border-bottom: 1rpx solid #5087E4;
					}

					.v2 {
						font-family: PingFang SC;
						font-weight: bold;
						color: #333333;
						font-size: 36rpx;
						border-bottom: 1rpx solid #5087E4;

						text {
							font-weight: 400;
							font-size: 20rpx;
						}
					}

					.v3 {
						font-family: PingFang SC;
						font-weight: bold;
						color: #333333;
						font-size: 36rpx;
						border-bottom: 1rpx solid #5087E4;

						text {
							font-weight: 400;
							font-size: 20rpx;
						}
					}

					.v4 {
						font-size: 36rpx;
						font-family: DINCond;
						font-weight: 900;
						color: #333333;
					}
				}
			}
		}
	}

	.top {
		position: fixed;
		top: 0;
		width: 100%;

		.img {
			width: 100%;
			height: 715rpx;
		}

		.go_case {
			position: absolute;
			right: 0rpx;
			z-index: 3;
			top: 150rpx;

			image {
				width: 52rpx;
				height: 168rpx;
			}
		}

	}
</style>
